package com.example.yilanchatserver.business.freechat;


import lombok.Getter;

@Getter
public enum BusinessErrorCodes {

    DEFAULT_BUSINESS_ERROR("defaultError", "业务异常"),
    GET_PARAM_ERROR("getParamError", "获取参数失败"),
    PASSWORD_ERROR("passwordError", "账号或密码错误"),
    REFRESH_TOKEN_ERROR("refreshTokenError", "获取刷新令牌失败"),
    JSON_PARSE_EXCEPTION("jsonParseException", "json转化失败"),
    CODE_EMPTY("codeEmpty", "用户编号为空"),
    NAME_EMPTY("nameEmpty", "用户名为空"),
    GROUP_CODE_EMPTY("groupCodeEmpty", "字典编码为空"),
    GROUP_NAME_EMPTY("groupNameEmpty", "字典名为空"),
    DATA_EXISTS("dataExists", "数据已经存在"),
    DATA_NOT_EXISTS("dataNotExists", "数据不存在"),
    USER_NOT_EXISTS("userNotExists", "用户不存在"),
    USER_EXISTS("userExists", "用户已经存在"),
    FILE_IMAGE_ERROR("fileImageError", "文件格式错误"),
    FILE_UPLOAD_ERROR("fileUploadError", "文件上传失败"),
    SOCKET_ERROR("socketError","socket报错"),
    MOBILE_ERROR("mobileError","手机号码错误"),
    SMS_CODE_ERROR("smsCodeError","验证码错误"),
    SMS_CODE_OVER_TIME("smsCodeOverTime","验证码服务器错误"),
    PASSWORD_FORMAT_INCORRECT("passwordFormatIncorrect","密码必须包含大小写数字，长度6-32字符"),
    SAVE_IMG_ERROR("saveImageError","保存图片失败"),
    FACE_NOT_FOUND("faceNotFound","脸部图片地址为空"),
    INVALID_SIGN("InvalidSign", "非法签名"),
    HEADER_ERROR("headerError","标头错误"),
    LOGIN_EXIST("LoginExist","当前账号已经在别的电脑登录，请退出后再做登录"),
    SENSITIVE_WORDS_EXIST("SensitiveWordsExist","存在敏感词，请检查"),
    QAPAIRS_ERROR("QAPairsError","问答对不完整，请检查"),
    ;


    private String code;
    private String message;

    BusinessErrorCodes(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
